package com.ruoyi.tccs.tccs_blood_estimate.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tccs.tccs_blood_estimate.mapper.TccsBloodEstimateMapper;
import com.ruoyi.tccs.tccs_blood_estimate.domain.TccsBloodEstimate;
import com.ruoyi.tccs.tccs_blood_estimate.service.ITccsBloodEstimateService;

/**
 * 血流动/信号参考Service业务层处理
 * 
 * @author RenZhengYang
 * @date 2024-04-06
 */
@Service
public class TccsBloodEstimateServiceImpl implements ITccsBloodEstimateService 
{
    @Autowired
    private TccsBloodEstimateMapper tccsBloodEstimateMapper;

    /**
     * 查询血流动/信号参考
     * 
     * @param id 血流动/信号参考主键
     * @return 血流动/信号参考
     */
    @Override
    public TccsBloodEstimate selectTccsBloodEstimateById(Long id)
    {
        return tccsBloodEstimateMapper.selectTccsBloodEstimateById(id);
    }

    /**
     * 查询血流动/信号参考列表
     * 
     * @param tccsBloodEstimate 血流动/信号参考
     * @return 血流动/信号参考
     */
    @Override
    public List<TccsBloodEstimate> selectTccsBloodEstimateList(TccsBloodEstimate tccsBloodEstimate)
    {
        return tccsBloodEstimateMapper.selectTccsBloodEstimateList(tccsBloodEstimate);
    }

    /**
     * 新增血流动/信号参考
     * 
     * @param tccsBloodEstimate 血流动/信号参考
     * @return 结果
     */
    @Override
    public int insertTccsBloodEstimate(TccsBloodEstimate tccsBloodEstimate)
    {
        tccsBloodEstimate.setCreateTime(DateUtils.getNowDate());
        return tccsBloodEstimateMapper.insertTccsBloodEstimate(tccsBloodEstimate);
    }

    /**
     * 修改血流动/信号参考
     * 
     * @param tccsBloodEstimate 血流动/信号参考
     * @return 结果
     */
    @Override
    public int updateTccsBloodEstimate(TccsBloodEstimate tccsBloodEstimate)
    {
        tccsBloodEstimate.setUpdateTime(DateUtils.getNowDate());
        return tccsBloodEstimateMapper.updateTccsBloodEstimate(tccsBloodEstimate);
    }

    /**
     * 批量删除血流动/信号参考
     * 
     * @param ids 需要删除的血流动/信号参考主键
     * @return 结果
     */
    @Override
    public int deleteTccsBloodEstimateByIds(Long[] ids)
    {
        return tccsBloodEstimateMapper.deleteTccsBloodEstimateByIds(ids);
    }

    /**
     * 删除血流动/信号参考信息
     * 
     * @param id 血流动/信号参考主键
     * @return 结果
     */
    @Override
    public int deleteTccsBloodEstimateById(Long id)
    {
        return tccsBloodEstimateMapper.deleteTccsBloodEstimateById(id);
    }
}
